package com.dwj.auto.comment.controller;


import com.dwj.auto.comment.common.response.PageResponse;
import com.dwj.auto.comment.model.req.CourseSearchCriteria;
import com.dwj.auto.comment.model.vo.CourseSearchVo;
import com.dwj.auto.comment.service.ICourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author dwjian
 * @since 2020-01-20
 */
@RestController
@RequestMapping("/api/course")
public class CourseController {

    @Autowired
    private ICourseService courseService;

    @GetMapping("/search/list")
    public PageResponse<CourseSearchVo> searchList(CourseSearchCriteria pagination){
        return courseService.searchList(pagination);
    }

}
